package com.qf.ge.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

@TableName(value = "dts_user_formid")
public class DtsUserFormid {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 缓存的FormId
     */
    @TableField(value = "formId")
    private String formid;

    /**
     * 是FormId还是prepayId
     */
    @TableField(value = "isprepay")
    private Boolean isprepay;

    /**
     * 可用次数，fromId为1，prepay为3，用1次减1
     */
    @TableField(value = "useAmount")
    private Integer useamount;

    /**
     * 过期时间，腾讯规定为7天
     */
    @TableField(value = "expire_time")
    private Date expireTime;

    /**
     * 微信登录openid
     */
    @TableField(value = "openId")
    private String openid;

    /**
     * 创建时间
     */
    @TableField(value = "add_time")
    private Date addTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除
     */
    @TableField(value = "deleted")
    private Boolean deleted;

    public static final String COL_ID = "id";

    public static final String COL_FORMID = "formId";

    public static final String COL_ISPREPAY = "isprepay";

    public static final String COL_USEAMOUNT = "useAmount";

    public static final String COL_EXPIRE_TIME = "expire_time";

    public static final String COL_OPENID = "openId";

    public static final String COL_ADD_TIME = "add_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_DELETED = "deleted";

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取缓存的FormId
     *
     * @return formId - 缓存的FormId
     */
    public String getFormid() {
        return formid;
    }

    /**
     * 设置缓存的FormId
     *
     * @param formid 缓存的FormId
     */
    public void setFormid(String formid) {
        this.formid = formid;
    }

    /**
     * 获取是FormId还是prepayId
     *
     * @return isprepay - 是FormId还是prepayId
     */
    public Boolean getIsprepay() {
        return isprepay;
    }

    /**
     * 设置是FormId还是prepayId
     *
     * @param isprepay 是FormId还是prepayId
     */
    public void setIsprepay(Boolean isprepay) {
        this.isprepay = isprepay;
    }

    /**
     * 获取可用次数，fromId为1，prepay为3，用1次减1
     *
     * @return useAmount - 可用次数，fromId为1，prepay为3，用1次减1
     */
    public Integer getUseamount() {
        return useamount;
    }

    /**
     * 设置可用次数，fromId为1，prepay为3，用1次减1
     *
     * @param useamount 可用次数，fromId为1，prepay为3，用1次减1
     */
    public void setUseamount(Integer useamount) {
        this.useamount = useamount;
    }

    /**
     * 获取过期时间，腾讯规定为7天
     *
     * @return expire_time - 过期时间，腾讯规定为7天
     */
    public Date getExpireTime() {
        return expireTime;
    }

    /**
     * 设置过期时间，腾讯规定为7天
     *
     * @param expireTime 过期时间，腾讯规定为7天
     */
    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    /**
     * 获取微信登录openid
     *
     * @return openId - 微信登录openid
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * 设置微信登录openid
     *
     * @param openid 微信登录openid
     */
    public void setOpenid(String openid) {
        this.openid = openid;
    }

    /**
     * 获取创建时间
     *
     * @return add_time - 创建时间
     */
    public Date getAddTime() {
        return addTime;
    }

    /**
     * 设置创建时间
     *
     * @param addTime 创建时间
     */
    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    /**
     * 获取更新时间
     *
     * @return update_time - 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置更新时间
     *
     * @param updateTime 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取逻辑删除
     *
     * @return deleted - 逻辑删除
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * 设置逻辑删除
     *
     * @param deleted 逻辑删除
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }
}